package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_OnlinePutonLocation", catalog="Id")
public class TccOnlinePutonLocation extends BaseEntity<TccOnlinePutonLocation> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="PutonOnlineId", nameJava="putonOnlineId", typeDataBase="bigint")
	private Long putonOnlineId;
	@YsField(nameDataBase="StockControlId", nameJava="stockControlId", typeDataBase="bigint")
	private Long stockControlId;
	@YsField(nameDataBase="SubPutonNum", nameJava="subPutonNum", typeDataBase="decimal")
	private BigDecimal subPutonNum;
	@YsField(nameDataBase="Chw", nameJava="chw", typeDataBase="varchar")
	private String chw;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccOnlinePutonLocation setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPutonOnlineId() {
		return putonOnlineId;
	}
	public TccOnlinePutonLocation setPutonOnlineId(Long putonOnlineId) {
		this.putonOnlineId = putonOnlineId;
		return this;
	}
	public Long getStockControlId() {
		return stockControlId;
	}
	public TccOnlinePutonLocation setStockControlId(Long stockControlId) {
		this.stockControlId = stockControlId;
		return this;
	}
	public BigDecimal getSubPutonNum() {
		return subPutonNum;
	}
	public TccOnlinePutonLocation setSubPutonNum(BigDecimal subPutonNum) {
		this.subPutonNum = subPutonNum;
		return this;
	}
	public String getChw() {
		return chw;
	}
	public TccOnlinePutonLocation setChw(String chw) {
		this.chw = chw;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccOnlinePutonLocation setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccOnlinePutonLocation setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccOnlinePutonLocation setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccOnlinePutonLocation tccOnlinePutonLocation(
		Long putonOnlineId,
		Long stockControlId,
		BigDecimal subPutonNum,
		String chw,
		Integer status
			) {
		TccOnlinePutonLocation entity = new TccOnlinePutonLocation();
		entity.setPutonOnlineId(putonOnlineId);
		entity.setStockControlId(stockControlId);
		entity.setSubPutonNum(subPutonNum);
		entity.setChw(chw);
		entity.setStatus(status);
		return entity;
	}
}